package cn.it.shop.service.flow;

import java.util.List;

import cn.it.shop.model.flow.FlowItem;
import cn.it.shop.service.BaseService;

/**
 * 流程后续推送service
 * @author fangyangsheng
 *
 */
public interface FlowItemService extends BaseService<FlowItem>{
	

	
	/**
	 * 根据流程主体id查找是否有对应的后续推送流程
	 * @param flowReplyId
	 * @return 流程后续推送集合
	 */
	public List<FlowItem> queryByFlowReplyId(long flowReplyId);
	
	
	
	/**
	 * //根据"步骤值"和"流程主体id"确定 要执行的后续流程
	 * @param sortnum 步骤值
	 * @param flowReplyId 流程主体id
	 * @return 流程后续推送
	 */
	public FlowItem getBySortnumAndfFlowReplyId(int sortnum, long flowReplyId);
	
}
